<pw:html>
    
    <pw:head>
        <title>SISCO - Listado de remitos</title>
        <pw:component name="pw_include_view" data-show="true" data-src="head_scripts.html"></pw:component>
    </pw:head>

    <pw:body>

        <pw:component name="pw_include_view" data-show="true" data-src="header.html"></pw:component>

        <div class="container">

                <pw:component name="pw_include_view" data-show="true" data-src="messages.html"></pw:component>
                
                <pw:component name="pw_div" data-show="true" data-class="row" data-id="">
                    <pw:container>

                        <pw:component name="pw_div" data-show="true" data-class="span3" data-id="">
                            <pw:container>
                                <pw:component name="pw_include_view" data-show="true" data-src="inventario_sidebar.html"></pw:component>
                            </pw:container>
                        </pw:component> <!-- span3 -->

                        
                        <pw:component name="pw_div" data-class="span9" data-id="" data-show="true">
                            <pw:container>
                            	<pw:component name="pw_text" data-content="Listado de remitos" data-tag="legend" data-free=""></pw:component>
								<pw:component name="pw_link" data-caption="Agregar" data-id="" data-name="" data-url="remitos/create/" data-free="class='btn'"></pw:component>

                                <table class="table table-bordered table-striped table-hover">
                                    <thead>
                                        <tr>
                                            <th>Proveedor</th>
                                            <th>Número</th>
                                            <th>Fecha</th>
                                            <th>Acciones</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    {foreach from=$remitos item="remito"}
                                        <tr>
                                            <td>{$remito->proveedor->nombre}</td>
                                            <td>{$remito->numero}</td>
                                            <td>{$remito->fecha|date_format:"%d/%m/%Y"}</td>
                                            <td class="span2">
                                                <pw:component name="pw_link" data-caption="Editar" data-id="" data-name="" data-url="remitos/update/{$remito->id}/" data-free=""></pw:component>
    
    
                                                <pw:component name="pw_link" data-caption="Eliminar" data-id="" data-name="" data-url="remitos/delete/{$remito->id}/" data-free="class='delete-confirm' data-delete_msg='¿Estás seguro que querés borrar este remito?'"></pw:component>
    
    
                                            </td>
                                        </tr>
                                    {/foreach}
                                    </tbody>
                                </table>
                        	</pw:container>
                        </pw:component> <!-- .span9 -->

                    </pw:container>
                </pw:component> <!-- .row -->

                <pw:component name="pw_include_view" data-show="true" data-src="footer.html"></pw:component>

        </div><!-- .container -->

        <pw:component name="pw_include_view" data-show="true" data-src="footer_scripts.html"></pw:component>
        
    </pw:body>
</pw:html>